package com.boboPlanet.user.feignApi;

import com.boboPlanet.comm.entity.po.SysDictConfigPO;
import com.boboPlanet.comm.result.ResponseResult;
import com.boboPlanet.user.fallback.BaseDictConfigFallbackImpl;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description: TODO 如果被调用方存在根路径，可在 FeignClient 中加 path，不写 RequestMapping
 * @Author: mis_wu
 * @Date: 2023/2/16
 **/
@FeignClient(value = "${boboPlanet.base-dict-config-serve}",path = "/boboPlanetBaseDictConfigDev/baseDictConfig",fallbackFactory = BaseDictConfigFallbackImpl.class )
//@RequestMapping("/baseDictConfig")
public interface BaseDictConfigApi {

    @GetMapping("/getOneDictConfigByCode")
    @ApiOperation("通过配置编码获取配置")
    ResponseResult<SysDictConfigPO> getOneDictConfigByCode(@RequestParam String code);

}
